package com.buba.controller;


import com.buba.pojo.LgRole;
import com.buba.service.LgRoleService;
import com.guli.common.ov.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author MrJia
 * @since 2020-10-27
 */
@RestController
@RequestMapping("/lgRole")
public class LgRoleController {
    @Autowired
    private LgRoleService lgRoleService;

    @RequestMapping("selectAll")
    public R selectAll() {
        return R.ok().data("roleList", lgRoleService.list());
    }
}

